package com.moon.interface_api.persistence;

import com.moon.interface_api.domain.UserDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author chengliang
 * @email 
 * @date 2018-11-06 13:15:36
 */
@Mapper
public interface UserDao {

	UserDO get(Integer id);
	
	List<UserDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(UserDO user);
	
	int update(UserDO user);
	
	int remove(Map<String, Object> params);
	
	int batchRemove(Integer[] ids);

    int delete(Map<String, Object> params);

    int batchDelete(Integer[] ids);
}
